<%@ Page Language="c#" MasterPageFile="~/SQLWebQuery.master" Title="SQL Web Query"
    Inherits="SqlWebAdmin.CreateStoredProcedure" CodeFile="CreateStoredProcedure.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table cellspacing="0" cellpadding="0" border="0" width="100%">
        <tr>
            <!--BEGIN ONE LINE-->
            <td valign="bottom" colspan="2" height="8" width="100%">
                <img src="images/spacer.gif" width="1" height="8" alt="" border="0"></td>
            <!--END ONE LINE-->
        </tr>
        <tr>
            <!--BEGIN ONE LINE-->
            <td align="left" width="12">
                <img src="images/spacer.gif" width="12" height="1" alt="" border="0"></td>
            <!--END ONE LINE-->
            <td align="left" class="databaseListItem" width="100%">
                <!-- PAGE CONTENT: START -->
                <!-- SECTION HEADER: START -->
                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                    <tr>
                        <td class="databaseListHeader">
                            CREATE STORED PROCEDURE
                        </td>
                    </tr>
                    <!-- SECTION HEADER: END -->
                    <!-- SECTION: START -->
                    <tr>
                        <!--BEGIN ONE LINE-->
                        <td height="3" valign="center" background="images/blue_dotted_line.gif">
                            <img src="images/blue_dotted_line.gif" width="150" height="3" alt="" border="0"></td>
                        <!--END ONE LINE-->
                    </tr>
                    <tr>
                        <!--BEGIN ONE LINE-->
                        <td height="4" valign="center">
                            <img src="images/spacer.gif" width="1" height="4" alt="" border="0"></td>
                        <!--END ONE LINE-->
                    </tr>
                    <tr>
                        <td bgcolor="white" class="databaseListItem">
                            Choose a name for the stored procedure:
                            <br>
                            <br>
                            <asp:TextBox ID="SProcNameTextBox" runat="server" Columns="30"></asp:TextBox>&nbsp;
                            <asp:Button ID="CreateNewSProcButton" runat="server" CssClass="button" onMouseOver="this.style.color='#808080';"
                                onMouseOut="this.style.color='#000000';" Text="Create" OnClick="CreateNewSProcButton_Click">
                            </asp:Button>
                            <br>
                            <br>
                            <asp:RequiredFieldValidator runat="server" ID="SProcNameRequiredValidator" ControlToValidate="SProcNameTextBox"
                                Display="Dynamic" ErrorMessage="The stored procedure name cannot be empty."></asp:RequiredFieldValidator>
                            <asp:Label ID="ErrorCreatingLabel" runat="server" Visible="False" ForeColor="red"></asp:Label>
                        </td>
                    </tr>
                    <!-- Section END -->
                    <!-- Section Footer START -->
                </table>
                <br>
                <!-- Section Footer END -->
                <!-- Page content END -->
            </td>
        </tr>
    </table>
</asp:Content>
